<script lang="tsx">
/**
 * 授权页面
 */
export default {
  name: "record-form"
}
</script>

<script lang="tsx" setup>
import {onMounted, ref} from "vue";
import {processRequest} from "anqin-framework";

/**
 * 挂载
 */
onMounted(() => {
  getSystemGlobalConfig()
})

/**
 * 获取系统全局配置
 */
const systemGlobalData = ref({
  version: "",
  recordCode: ""
})
const getSystemGlobalConfig = async () => {
  const result = await processRequest.get("/api/SystemConfig", {
    pageSize: 9999
  })
  systemGlobalData.value = {
    version: result.dataList.find((item: any) => item.code === "版权所有")?.content,
    recordCode: result.dataList.find((item: any) => item.code === "备案号")?.content
  }
}
</script>

<template>
  <div class="bottom-form">
    <div class="bottom-container">
      <div class="container-copyright">
        {{ systemGlobalData?.version }}
      </div>
      <div class="container-record">
        {{ systemGlobalData?.recordCode }}
      </div>
    </div>
    <div class="form-background"></div>
  </div>
</template>

<style lang="scss" scoped src="./index.scss">

</style>